<?php
namespace app\admin\controller;
use app\admin\model\TopicStatisticsModel;
use think\Controller;
use \think\Request;
use think\Session;
use think\Db;
class  TopicStatistics extends Controller
{
    /*
     * 话题统计
     */
    public function index(){
        $res = Db::table('community')->count('community_name');
       $this->assign('res',$res);
       return $this->fetch();
    }
}